//
//  CartoonClassifyNewCell.m
//  Double
//
//  Created by 孟令博 on 15/5/25.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "CartoonClassifyNewCell.h"

@implementation CartoonClassifyNewCell
- (void)dealloc
{
    [_lable3 release];
    [_lable1 release];
    [_lable2 release];
    [_image release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        UIImageView *myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 20, 150)];
        [self.contentView addSubview:myImageView];
        [myImageView release];
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 120, 150)];
        //        [self.image setBackgroundColor:[UIColor redColor]];
        [myImageView addSubview:self.image];
        [_image release];
        
        self.lable1 = [[UILabel alloc] initWithFrame:CGRectMake(130, 0, myImageView.frame.size.width - 130, 60)];
        self.lable1.font = [UIFont boldSystemFontOfSize:14];
        self.lable1.numberOfLines = 0;

        [myImageView addSubview:self.lable1];
        [_lable1 release];
        
        self.lable2 = [[UILabel alloc] initWithFrame:CGRectMake(130, 60, myImageView.frame.size.width - 130, 30)];
//        self.lable2.textAlignment = NSTextAlignmentRight;
        self.lable2.font = [UIFont boldSystemFontOfSize:14];
        [myImageView addSubview:self.lable2];
        [_lable2 release];
        
        self.lable3 = [[UILabel alloc] initWithFrame:CGRectMake(130, 100, myImageView.frame.size.width - 130, 30)];
        //        self.lable2.textAlignment = NSTextAlignmentRight;
        self.lable3.font = [UIFont boldSystemFontOfSize:14];
        [myImageView addSubview:self.lable3];
        [_lable3 release];
        
    }
    return self;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
